package com.sjtu.dao.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.SQLDelete;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * nerine
 * 1/28/2020
 */
@SQLDelete(sql="UPDATE client_info SET is_deleted = 1 WHERE id_Client_Info = ?")
@Getter
@Setter
@ToString
@Entity(name = "client_info")
public class ClientInfo extends BaseModel {
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid2")
    private String idClientInfo;
    /** 子系统id */
    private String systemId;
    /** 系统中文名称 */
    private String systemName;
    /** 实例信息，格式为ip:port,ip:port */
    private String instances;
}